#include "bsp_led.h"
#include "bsp_delay.h"

void led_Init()
{
    IOMUXC_SetPinMux(IOMUXC_GPIO1_IO04_GPIO1_IO04,0);
    IOMUXC_SetPinConfig(IOMUXC_GPIO1_IO04_GPIO1_IO04,0x10b0);

    GPIO1->GDIR |= 1<<4;
    led_OFF();
}
void led_ON()
{
    GPIO1->DR &= ~(1<<4);
}
void led_OFF()
{
    GPIO1->DR |= 1<<4;
}
void led_debug()
{
    while(1)
    {
        led_ON();
        delay(10);
        led_OFF();
        delay(10);   
    }
}